package lxh.com.union.logic_business.model.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Created by Administrator on 2017/12/15.
 */

public class BaseBean implements Serializable {
    protected String code;
    protected String message;


    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


    public boolean hasSuccRes() {
        boolean flag = false;
        //淘宝返回0
        if (!TextUtils.isEmpty(code) && (code.equals("100"))) {
            flag = true;
        }
        return flag;
    }
}
